import { reqSearchList } from "@/api";

// 详情仓库
const state = {
  // a: "sjh",
  goodList: {},
};
const mutations = {
  GETSEARCHRESULT(state, goodList) {
    state.goodList = goodList;
  },
};
const actions = {
  async getSearchResult({ commit, state, dispatch, getters }, payload) {
    let result = await reqSearchList(payload);
    if (result.code == 200) {
      commit("GETSEARCHRESULT", result.data);
    }
  },
};
const getters = {};

// 暴漏
export default {
  state,
  mutations,
  actions,
  getters,
};
